<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/1/22 0022
 * Time: 20:44
 */


//$arr = array();
$arr = array('h'=>'hello','2'=>'world','n'=>'ni');//初始化数组
//$arr[0]='hello';
//$arr[1]='123';
//$arr[1]='3.11';

//$arr['h']='hello';
//$arr['w']='3.11';

//for($i=1;$i<20;$i++){
//    array_push($arr,'hello'.$i.'<br>');//添加数组元素
//}

print_r($arr);//打印数组
//echo $arr['h'];//打印单个元素